package cn.meye11.crm.mapper;

import cn.meye11.crm.domain.entity.ItemEntity;
import cn.meye11.crm.domain.query.ItemQuery;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
/**
 * 项目表(Item)表数据库访问层
 * 
 * @author makejava
 * @since 2023-11-18 19:20:43
 */
@Repository
public interface ItemMapper extends Mapper<ItemEntity> {

    @SelectProvider(type = ItemProvider.class, method = "list")
    List<ItemEntity> list(ItemQuery query);
    
    @SelectProvider(type = ItemProvider.class, method = "count")
    Long count(ItemQuery query);
}
